home *** CD-ROM | disk | FTP | other *** search
/ Programmer Plus 2007 / Programmer-Plus-2007.iso / Programming / Report Writers / Crystal Repot 9.0 Full CD version / Setup.exe / Windows / System32 / HTMLRE90.DLL / HTML / 11050 < prev    next >
Encoding:
Text File  |  2002-07-05  |  5.6 KB  |  250 lines

  1. <HTML>
  2. <HEAD>
  3. <LINK REL="stylesheet" TYPE="text/css" HREF="%1css/default.css">
  4.  
  5. <script language="Javascript">
  6. //LOCALIZATION STRINGS
  7. var _errFavorites = "Can't copy or move objects to Favorite Folders Container!";
  8. var _errNoObject = "No object is selected!";
  9. </script>
  10.  
  11. <SCRIPT LANGUAGE="JavaScript">
  12. var num = %11;
  13. var pathNum = %7;
  14.  
  15. function FolderInfo(id, title)
  16. {
  17.    this.id = id;
  18.    this.title = title;
  19. }
  20.  
  21. var folderOption = new Array(num);
  22. var pathOption = new Array(pathNum);
  23.  
  24. %10
  25.  
  26. %8
  27. function doSubmitForm() {
  28.          index = document.copymove.folders.selectedIndex;
  29.  
  30.          // no object has been selected
  31.          if (index < 0)
  32.          {
  33.             // use the one in the dropdown list
  34.             fid = pathOption[document.copymove.paths.selectedIndex].id;
  35.          }
  36.          else if (index < document.copymove.folders.length)
  37.          {
  38.             fid = folderOption[index].id;
  39.          }
  40.  
  41.          if (fid == 18) 
  42.             alert(_errFavorites);
  43.          else
  44.          {
  45.             parent.fid = fid;
  46.             parent.doSubmitForm();
  47.          }
  48.  
  49. }
  50.  
  51. function openFolder()
  52. {
  53.       index = document.copymove.folders.selectedIndex;
  54.       if (index < 0)
  55.       {
  56.          alert(_errNoObject);
  57.          return;
  58.       }
  59.  
  60.       if (index < document.copymove.folders.length)
  61.       {
  62.         id = folderOption[index].id;
  63.  
  64.         doOpenFolder(id);
  65.       }
  66. }
  67.  
  68. function doChange()
  69. {
  70.    index = document.copymove.paths.selectedIndex;
  71.    var id = pathOption[index].id;
  72.  
  73.    doOpenFolder(id);
  74. }
  75.  
  76. function doOpenFolder(id)
  77. {
  78.    url = "%5" + id;
  79.    location.href = url;
  80. }
  81.    
  82.  
  83. function doClickRadio (type) {
  84.    parent.cmdType = type;
  85. }
  86.  
  87. function doFilter()
  88. {
  89.  
  90.    id = pathOption[document.copymove.paths.selectedIndex].id;
  91.  
  92.    url = "%5" + id + "&filter=" + escape(document.copymove.filter.value);
  93.    location.href = url;
  94. }
  95.  
  96. function init()
  97. {
  98.  
  99.    // Remove the formatting options
  100.     document.copymove.folders.options[0] = null;
  101.  
  102.     // Remove all five formatting string(s) as netscape will only grow 
  103.     // as big as the origonal values. 
  104.     document.copymove.paths.options[0] = null;
  105.     document.copymove.paths.options[0] = null;
  106.     document.copymove.paths.options[0] = null;
  107.     document.copymove.paths.options[0] = null;
  108.     document.copymove.paths.options[0] = null;
  109.  
  110.     
  111.     for (var i = 0; i < num; i++)
  112.     {
  113.       option = new Option(folderOption[i].title, i, false, false);
  114.       document.copymove.folders.options[i] = option;
  115.     }
  116.  
  117.     document.copymove.folders.selectedIndex = -1;
  118.     
  119.     document.copymove.paths.options[0] = null;
  120.  
  121.     for (var j = 0; j < pathNum; j++)
  122.     {
  123.        option = new Option(pathOption[j].title, j, false, false);
  124.        document.copymove.paths.options[j] = option;
  125.     }
  126.  
  127.     document.copymove.paths.selectedIndex = %6;
  128.  
  129.     if (parent.cmdType == "copy")
  130.         document.copymove.type[0].checked = true;
  131.     else if (parent.cmdType == "move")
  132.         document.copymove.type[1].checked = true;
  133.     else
  134.         document.copymove.type[2].checked = true;
  135.  
  136. }
  137.  
  138. </SCRIPT>
  139. </HEAD>
  140.  
  141. <BODY onload="init()" MARGINWIDTH=5 MARGINHEIGHT=5>
  142. <FORM method="post" name="copymove" >
  143.  
  144.  
  145. <SPAN CLASS="listSelected">Choose to copy, create shortcut(s), or move the selected report(s) from their current folder(s) to a destination folder.</SPAN>
  146.  
  147. <BR>
  148. <BR>
  149.  
  150. <TABLE CELLPADDING="2" CELLSPACING="2" BORDER="0" > 
  151.  
  152. <tr>
  153.   <td class="list" width="40%">
  154.     <INPUT TYPE="RADIO" NAME="type" ONCLICK="doClickRadio('%2')" CHECKED>Copy to:
  155.   </td>
  156.   <td class="list">
  157.     <DIV> Destination: </DIV>
  158.   </td>
  159.   <td class="list">
  160.     <SELECT class="menuFormElement" NAME="paths"  size=1 onchange="doChange()" width="200px">
  161.        <OPTION> This is a formatting string string
  162.        <OPTION> This is a formatting string string
  163.        <OPTION> This is a formatting string string
  164.        <OPTION> This is a formatting string string
  165.        <OPTION> This is a formatting string string
  166.     </SELECT>
  167.   </td>
  168.   <td class="list">
  169.     %9
  170.   </td>
  171. </tr>
  172.  
  173. <tr>
  174.   <td class="list">
  175.     <INPUT TYPE="RADIO" NAME="type" ONCLICK="doClickRadio('%3')">Move to:
  176.   </td>
  177.   <td class="list" align=right> Look For: </td>
  178.   <td class="list">  <input type="text" name="filter" value="%12" size=15> </td>
  179.   <td align=left>
  180.     <table>
  181.       <tr>
  182.       <td><table cellpadding=0><tr>
  183.         <td class="clsButton" align=middle nowrap>
  184.            <div class="clsButton"> <A HREF="javascript:doFilter()">Find Now</A> </div>
  185.         </td></tr></table>
  186.       </td>
  187.       </tr>
  188.     </table>
  189.   </td>
  190. </tr>
  191. <tr> 
  192.   <td class="list" valign="top">          
  193.      <INPUT TYPE="RADIO" NAME="type" ONCLICK="doClickRadio('%4')" >Create shortcut in:
  194.   </td> 
  195.   <td>
  196.   </td>
  197.   <td class="list">
  198.     <SELECT class="menuFormElement" NAME="folders" size=7 width="200px">
  199.        <OPTION> This is a formatting string string</OPTION>
  200.     </SELECT>
  201.   </td>
  202.   <td>
  203.     <table>
  204.       <tr>
  205.       <td><table cellpadding=0 border=0><tr>
  206.         <td class="clsButton" align=left nowrap>
  207.            <div class="clsButton"> <A HREF="javascript:openFolder()"> Show Subfolders </A> </div>
  208.         </td>
  209.       </tr></table></td>
  210.       </tr>
  211.     </table>
  212.   </td>
  213. </tr>
  214.  
  215. <tr>
  216.   <td class="list" colspan=2 align=right>    </td>
  217.   <td class="list">
  218.       %13
  219.    </td>
  220. </tr>
  221.  
  222. <tr> <td height=8 colspan=3> </td> </tr>
  223.  
  224. <tr>
  225.   <td colspan=3> </td>
  226.   <td>
  227.   <table CELLPADDING="0" border=0><tr>
  228.   <tr>
  229.       <td><table cellpadding=0 border=0><tr>
  230.         <td class="clsButton" align=middle nowrap>
  231.            <div class="clsButton"> <A HREF="javascript:doSubmitForm()"> OK </A> </div>
  232.         </td>
  233.       </tr></table>
  234.       </td>
  235.       <td>
  236.       <table cellpadding=0 border=0><tr>
  237.         <td class="clsButton" align=middle nowrap> 
  238.             <div class="clsButton"> <A HREF="%14"> Cancel </A> </div>
  239.         </td> 
  240.       </tr></table>
  241.       </td>
  242.   </tr>
  243.   </table>
  244.   </td>
  245. </tr>
  246.  
  247. </TABLE>
  248. </BODY>
  249. </HTML>
  250.